package com.prs.crm.service.person.impl;

import java.util.Collection;
import java.util.List;

import com.prs.crm.dao.person.DepartmentDao;
import com.prs.crm.domain.person.Department;
import com.prs.crm.service.impl.BaseServiceImpl;
import com.prs.crm.service.person.DepartmentService;

public class DepartmentServiceImpl extends BaseServiceImpl<Department, DepartmentDao> implements DepartmentService{

	@Override
	public List<Department> getAllDepartment() {
		return this.getDao().getAllDepartment();
	}
//
//	@Override
//	public List<Department> getDepartmentByDeptId(Integer deptId) {
//		return this.getDao().getDepartmentByDeptId(deptId);
//	}

	@Override
	public Collection<Department> getRootDepartment() {
		return this.getDao().getRootDepartment();
	}
}
